{include file="header.tpl.html"}

<div id="divContent" class="widthContent radiusDiv shadowDiv backWhite textAlignLeft tableDiv" style="height:auto;">
	<div class="tableDiv" >
		<div class="rowTableDiv" > 
			<div class="cellTableDiv widthContent divFloat darkBlueEffect leftTopRadiusDiv rightTopRadiusDiv"  style="height: 25px;"> 
				&nbsp;
			</div>
		</div>			
	</div>	
	<div class="tableDiv mediumGreyDiv2" style="padding-top:0px;padding-bottom:0px;">
		
		<div class="rowTableDiv" > 
			<div class="cellTableDiv2 widthContent1 divFloat lightGreyDiv" > 
				<p class="pCellDiv ">Caricamento liste</p>
			</div>
			<div class="cellTableDiv2 widthContent2 divFloat " > 
				<p class="pCellDiv2">
					<input type="text" name="nomeFile" value="" class="inputGeneral1 radiusInput widthMax100" />
				</p>
			</div>
		</div>
		<div class="rowTableDiv" > 
			<div class="cellTableDiv2 widthContent1 divFloat lightGreyDiv" > 
				<p class="pCellDiv ">Id Campagna</p>
			</div>
			<div class="cellTableDiv2 widthContent2 divFloat " > 
				<p class="pCellDiv2">
					<input type="text" name="idCampagna" value="" class="inputGeneral1 radiusInput widthMax100" />
				</p>
			</div>
		</div>
	</div>
	
	
 
	
	<div class="tableDiv" >
		<div class="rowTableDiv" >                        
			<div class="cellTableDiv widthContent divFloat darkBlueEffect leftBottomRadiusDiv rightBottomRadiusDiv"  style="height: 0px;"> 
				&nbsp;
			</div>
		</div>			
	</div>	
</div>

<div class="widthContent textAlignRight tableDiv" style="margin-top:20px;" >
	<input type="button" value="Carica lista" class="buttonNew3 effectImage radiusButton shadowButton"  onclick="_submitSave()"/>
</div>	



</br>


{include file="funcMisc.js"}
{include file="funcSelect.js"}
{include file="funcPopup.js"}


<input type="hidden" name="save" id="save" value="" />

<script type="text/javascript">
selectOption("idCampagna","{$idCampagna}");
selectOption("oreLavorate","{$oreLavorate}");
selectOption("minutiLavorati","{$minutiLavorati}");

{literal}

function _submitSave()
{
	popMsg.resetValueObjMsg();
		
	if (document.main.nomeFile.value == '')
	{
	// 				    usrMessageDsc = "Inserire l'ora dell'appuntamento";
	// 				    popMsg.warning();	
		alert ("Inserire il nome del file");
		return;
	}

	if (document.main.idCampagna.value == '')
	{
	// 				    usrMessageDsc = "Inserire l'ora dell'appuntamento";
	// 				    popMsg.warning();	
		alert ("Inserire l'id della campagna");
		return;
	}

	if (confirm('Sei sicuro di voler caricare la lista?'))
	{
		document.main.save.value = 'S';
		document.main.submit();
	}
	
	

}
	
	
{/literal}


</script>
 
{include file="usrObjPopupMsg.tpl.html"}
{include file="footer.tpl.html"} 
 

